@port-prefix-cls: ~"@{css-prefix}port";
@inport-prefix-cls: ~"@{css-prefix}port-in";
@outport-prefix-cls: ~"@{css-prefix}port-out";
@inout-prefix-cls: ~"@{css-prefix}in-out";

.@{port-prefix-cls} {
  width: 10px;
  height: 10px;
  float: right;
  margin-right: -5px;
  border: 1px solid gray;
  border-radius: 50%;
  background-color: #fff;

  &-magnet {
    float: left;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    margin-left: -6px;
    background-color: transparent;
    border-radius: 50%;
  }
}

.@{inport-prefix-cls} {
  cursor: default;

  &:hover {
    border: 1px solid #2d8cf0;
    width: 10px;
    height: 10px;
    box-shadow: 0px 0px 1px 3px #57a3f3;
    border-radius: 50%;
    margin-top: -1px;
  }
}
.@{inout-prefix-cls} {
  border: 1px solid #2d8cf0;
  width: 10px;
  height: 10px;
  box-shadow: 0px 0px 1px 3px #57a3f3;
  border-radius: 50%;
  margin-top: -1px;
}

.is-connected {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0;
  border-color: gray transparent transparent;
  background-color: transparent;
  border-radius: 0;
  margin-top: 6px;
}
.@{outport-prefix-cls} {
  cursor: crosshair;
}
